@echo off 
rem :: set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18 
set JBossHome=C:\Program Files\JBoss.org\5.1.0.GA\runtime

"%JAVA_HOME%\bin\jar.exe" -cvf helloworld.war *.jsp WEB-INF 
copy helloworld.war "%JBossHome%\server\default\deploy" 
pause